﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class STest extends IMessageBase
    {
        public var t1:int;
        public var t2:int;
        public var t3:int;
        public var t4:String;
        public var t5:Dictionary;
        public var t6:Dictionary;
        public const _type:int = 9900;
        public static var _regist:STest = new STest(true);

        public function STest(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new STest();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.t1);
            param1.writeShort(this.t2);
            param1.writeInt(this.t3);
            param1.writeString(this.t4);
            DictIntDtHelper.write(param1, this.t5);
            DictIntIntHelper.write(param1, this.t6);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.t1 = param1.readByte();
            this.t2 = param1.readShort();
            this.t3 = param1.readInt();
            this.t4 = param1.readString();
            this.t5 = DictIntDtHelper.read(param1);
            this.t6 = DictIntIntHelper.read(param1);
            return;
        }// end function

    }
}
